import { Component, Input, OnInit } from '@angular/core';

@Component({
  selector: 'd-modal-alert',
  template: `<div>
    <div class="modal-body">
      <div *ngIf="!!data.content">{{ data.content }}</div>
    </div>
    <div class="modal-footer">
      <button (click)="close($event)" bsStyle="stress" circled="true">{{ data.cancelBtnText }}</button>
    </div>
  </div>`,
})
export class TestModalComponent {
  @Input() data: any;
  close(event) {
    this.data.onClose(event);
  }
}
